<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>修改页面</title>
    <style>
        /* 整体页面布局 */
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }
        /* 表单容器 */
        .form-container {
            background-color: #fff;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 400px;
            margin: 50px auto;
        }
        /* 表单元素的通用样式 */
        .form-container label {
            display: block;
            margin-bottom: 5px;
        }
        .form-container input[type="text"],
        .form-container input[type="password"],
        .form-container input[type="email"],
        .form-container input[type="tel"] {
            width: 100%;
            padding: 8px;
            margin-bottom: 10px;
            border: 1px solid #ccc;
            border-radius: 3px;
        }
        /* 提交按钮样式 */
        .form-container input[type="submit"] {
            background-color: #007BFF;
            color: #fff;
            border: none;
            padding: 10px 20px;
            border-radius: 3px;
            cursor: pointer;
        }
        .form-container input[type="submit"]:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
<div class="form-container">
    <h2>修改信息</h2>
    <form action="UpdateUserServlet" method="post">
        <input type="hidden" id="id" name="id" value="${u.id}" required>
        <label for="account">账号:</label>
        <input type="text" id="account" name="account" value="${u.account}" required>
        <label for="password">密码:</label>
        <input type="password" id="password" name="password" value="${u.password}" required>
        <label for="email">邮箱:</label>
        <input type="email" id="email" name="email"  value="${u.email}" required>
        <label for="phone">电话:</label>
        <input type="tel" id="phone" name="phone" value="${u.phone}" required>
        <input type="submit" value="保存修改">
    </form>
</div>
</body>
</html>